import request from '@/utils/request'

export function addExternalList(data) {
  return request({
    url: '/example/addExternal/listView',
    method: 'post',
    data
  })
}

export function addExternalListItem(params) {
  return request({
    url: '/example/addExternal/listItem',
    method: 'get',
    params
  })
}

export function addExternalAdd(data) {
  return request({
    url: '/example/addExternal/listAdd',
    method: 'post',
    data
  })
}

export function addExternalEdit(data) {
  return request({
    url: '/example/addExternal/listEdit',
    method: 'post',
    data
  })
}

export function addExternalRemove(params) {
  return request({
    url: `/example/addExternal/listRemove?id=${params.id}`,
    method: 'post'
  })
}
